﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:qs="http://schemas.altairis.cz/XML4web/Arguments#QueryString" xmlns:ff="http://schemas.altairis.cz/XML4web/Arguments#FormFields" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" exclude-result-prefixes="msxsl qs ff dc wfw slash ">
    <xsl:output method="xml" indent="no" omit-xml-declaration="yes" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" encoding="utf-8" />

    <xsl:param name="MyUrl" />
    <xsl:param name="BaseUrl" />
    <xsl:param name="qs:count" select="3" />

    <xsl:template match="/">
        <html>
            <head>
                <title>TechNet</title>
                <link rel="stylesheet" type="text/css" href="{$BaseUrl}/Templates/TechNet/StyleSheet.css" />
                <meta http-equiv="content-type" content="text/html; charset=utf-8" />
                <meta name="author" content="Michal A. Valášek - Altairis, www.altairis.cz" />
            </head>
            <body>
                <div>
                    <img src="{$BaseUrl}/Templates/TechNet/TopBand.png" alt="Microsoft TechNet" title="" width="200" height="45" />
                </div>
                <div id="content">
                    <dl>
                        <xsl:for-each select="/root/group[@id='tech']/feed">
                            <dt>
                                <a href="{data/link}" target="_top">
                                    <xsl:value-of select="@title"/>
                                </a>
                            </dt>
                            <xsl:for-each select="data/item">
                                <xsl:if test="position() &lt;= $qs:count">
                                    <dd>
                                        <a href="{link}" target="_top">
                                            <xsl:value-of select="title"/>
                                        </a>
                                    </dd>
                                </xsl:if>
                            </xsl:for-each>
                        </xsl:for-each>
                    </dl>
                </div>
                <div>
                    <a href="{$BaseUrl}/transform.msdn.axd?count={$qs:count}">
                        <img src="{$BaseUrl}/Templates/TechNet/BottomBand.png" alt="Microsoft Developer Network" title="Co je nového v MSDN?" width="200" height="30" />
                    </a>
                </div>
            </body>
        </html>
    </xsl:template>

</xsl:stylesheet>
